Skip to content

swift-package-migrate: Report a fix-it application summary#8684

Merged
AnthonyLatsis merged 4 commits intoswiftlang:mainfrom
AnthonyLatsis:dia-especial-2
May 25, 2025
Merged

swift-package-migrate: Report a fix-it application summary#8684
AnthonyLatsis merged 4 commits intoswiftlang:mainfrom
AnthonyLatsis:dia-especial-2

Conversation

@AnthonyLatsis
Copy link
Contributor

@AnthonyLatsis AnthonyLatsis commented May 16, 2025

  • E.g. > Applied 3 fix-its in 1 file (0.001s).

  • Don’t output messages with a period for consistency with other commands.

  • Minor optimization for fix-it application.

    SwiftIDEUtils.FixItApplier.applyFixes performs some O(n^2) filtering based on SwiftDiagnostics.FixItMessage messages, which we don't need. Use the overload that directly takes an array of source edits instead.

Sits on top of #8683.

Other commands don't do this. Be consistent.
`SwiftIDEUtils.FixItApplier.applyFixes` performs some O(n^2) filtering
based on `SwiftDiagnostics.FixItMessage` messages, which we don't need.
Use the overload that directly takes an array of source edits instead.
@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

@AnthonyLatsis AnthonyLatsis enabled auto-merge (squash) May 24, 2025 18:38
@xedin
Copy link
Contributor

xedin commented May 25, 2025

@swift-ci please test self hosted Windows platform

@AnthonyLatsis AnthonyLatsis merged commit dcab689 into swiftlang:main May 25, 2025
6 checks passed
@AnthonyLatsis AnthonyLatsis deleted the dia-especial-2 branch May 25, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants